<?php
    $email = isset($_REQUEST['username']) ? $_REQUEST['username'] : "";

    echo "<div class='message'>". $error . "</div>";
    echo '<h2>Melde dich an</h2><br />';

    echo '<div class="content_frame">';
	echo '<h3>Ich bin neu hier</h3>';
	echo '<div class="fleft">Durch deine Registrierung bei uns kannst du alle Funktionen von Lingomoto nutzen:';
	echo '<div class="right7" >';
	echo '<a href="registrieren.html">Weiter</a>';
	echo '</div>';
    echo '</div>';
	echo '<br /><br /><br />';

    echo '<form action=' . $link . ' method="post">';
    echo '<br /><h3>Ich bin bereits registriert</h3>';
    echo '<ul>';
    echo '<li>E-Mail:</li>';
    echo '<li><input type="text" class="login_ul" name="username" size="25" maxlength="40" value="';
    // Content, if form was not completed
    echo $email;
    echo '" onClick=this.value="" /></li>';
    echo '<li>Passwort:</li>';
    echo '<li><input type="password" value="" class="login_ul" name="password" size="25" maxlength="40" onClick=this.value="" /></li>';
    echo '<li><input type="image" class="margintop" src="bilder/buttons/anmelden.png" alt="Anmelden" title=" Anmelden " /></li>';
    echo '</ul>';

	echo '<br />';
    echo '<div class="link"><a href="passwort-vergessen.html" class="lostpassword">Passwort vergessen?</a></div>';

	if ($_REQUEST['pre_page'])$referer=$_REQUEST['pre_page'];else $referer=$_SERVER["HTTP_REFERER"];
    echo '   <input type="hidden" name="pre_page" value="'.$referer.'" ';
    echo '</form>';	
    echo '</div>';

?>